<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
    xmlns:biwa="http://biwano.com/jsf/facelets"
	>

<ui:composition template="resources/template.xhtml">

	<ui:define name="subtitle">#{jobExchangeText.label_title}</ui:define>
	<ui:define name="body">
		<h:form class="jobexchangeform" id="jobexchangeform">
			<div class="container" style="width:50%;">
			<h3>#{jobExchangeText.label_c_title}</h3><br/>
				<div>
					<span>
						<h:outputLabel value="#{generalText.label_job}" for="c_jobinput" styleClass="bigform"/>
						<h:selectOneMenu value="#{jobExchangeBean.jobExchange.c_jobType}" id="c_jobinput">
    						<f:selectItems value="#{jobTypesBean.list}" var="jobType" itemValue="#{jobType.id}" itemLabel="#{jobType.localisedJobType(userBean.locale)}"/>
						</h:selectOneMenu>  

					</span><br/>
					<span>
						<h:outputLabel value="#{generalText.label_experience}" for="c_experienceinput" styleClass="bigform"/>
						<h:selectOneMenu value="#{jobExchangeBean.jobExchange.c_experience}" id="c_experienceinput">
<f:selectItems
   value="#{experienceBean.list}" />
   						</h:selectOneMenu>  
 <!--    						<f:selectItems value="#{ExperienceBean.list}" var="jobExperience" itemValue="#{jobExperience.id}" itemLabel="#{jobExperience.localisedJobType(userBean.locale)}"/>
  -->

					</span><br/>
					<span>
						<h:outputLabel value="#{generalText.label_location}" for="c_jobinput"  styleClass="bigform"/>
						<h:message for="map" styleClass="error" />
						<biwa:map form="jobexchangeform"
								longitude="#{jobExchangeBean.jobExchange.c_longitude}"
								latitude="#{jobExchangeBean.jobExchange.c_latitude}" 
								autolocate="true"
						id="map" width="300" height="300" script="resources/map.js" />
					</span>
				</div>
			</div>
		</h:form>
	</ui:define>
</ui:composition>


</html>
